IntentCompat
Helper for accessing features in Intent.
Properties
Link copied to clipboard
Activity Action: Creates a reminder.
Link copied to clipboard
Indicates an activity optimized for Leanback mode, and that should be displayed in the Leanback launcher.
Link copied to clipboard
A constant String that is associated with the Intent, used with ACTION_SEND to supply an alternative to EXTRA_TEXT as HTML formatted text.
Link copied to clipboard
Used as a boolean extra field in ACTION_VIEW intents to indicate that content should immediately be played without any intermediate screens that require additional user input, e.g.
Link copied to clipboard
Optional extra specifying a time in milliseconds since the Epoch.
Functions
Link copied to clipboard
Link copied to clipboard
open fun getParcelableArrayExtra(@NonNull in: Intent, @Nullable name: String, @NonNull clazz: Class<out Parcelable>): Array<Parcelable>
Retrieve extended data from the intent.
Link copied to clipboard
open fun <T : Serializable?> getSerializableExtra(@NonNull in: Intent, @Nullable key: String, @NonNull clazz: Class<T>): T
Returns the value associated with the given key or
null
if: - No mapping of the desired type exists for the given key.
- A
null
value is explicitly associated with the key. - The object is not of type
clazz
.
- SDK 34 and above, this method matches platform behavior.
- SDK 33 and below, the object type is checked after deserialization.
Link copied to clipboard